//
//  ReportCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/9/1.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "ReportCell.h"
@implementation ReportCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setSubViews];
    }
    return self;
}

/**
 子页面布局
 */
-(void)setSubViews{
   _namelabel = [[UILabel alloc] init];
    [self.contentView addSubview:_namelabel];
    [_namelabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(10));
        make.centerY.equalTo(self.contentView);
        make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(300), scaleTopAndBottom(30)));
    }];
    _chooseImageView = [[UIImageView alloc] init];
    _chooseImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:_chooseImageView];
    [_chooseImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(30), scaleTopAndBottom(30)));
        make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(-10));
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
